package homework5.com.dynamic_sql.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import homework5.com.dynamic_sql.dao.ItemDao;
import homework5.com.dynamic_sql.pojo.Item;
import homework5.com.dynamic_sql.service.ItemService;

@Service("itemService")
public class ItemServiceImpl implements ItemService {

	@Autowired
	private ItemDao itemDao;
	@Override
	@Transactional(readOnly=true)
	public List<Item> findByUsername(String username) {
		return itemDao.findItemByUsername(username);
	}

}
